package com.action;

import com.controller.GetServiceCallList;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lirance on 16/4/5.
 */
public class getListsAction extends BaseAction {
    private List userlist;
    private List serviceList;
    private List servicecall;

    public List getServiceList() {
        return serviceList;
    }

    public void setServiceList(List serviceList) {
        this.serviceList = serviceList;
    }

    public List getUserlist() {
        return userlist;
    }

    public void setUserlist(List userlist) {
        this.userlist = userlist;
    }

    public List getServicecall() {
        return servicecall;
    }

    public void setServicecall(List servicecall) {
        this.servicecall = servicecall;
    }

    @Override
    public String execute() throws Exception {
        this.setUserlist(this.getAllService().getGetUsersService().getAllEntities());
        this.setServiceList(this.getAllService().getGetServicesService().getAllEntities());
        // this.setServicecallList(this.getAllService().getGetServiceCallsService().getAllEntities());

        ArrayList list = new GetServiceCallList().GetServiceCallLists();
        this.setServicecall(list.subList(0, 1000));
        return SUCCESS;
    }


}
